Welcome Guest | Sign in | Register
Web Services - DotNet Programming Interview Questions and Answers | LucentBlackBoard | LucentBlackBoard.com

Home > Technical Interviews > Computer Science & Engineering > DotNet Programming > Web Services Questions and Answers

21. Which two methods are used to discover the URL of Web services?

The two methods to discover the URL of Web services are Web service discovery tool (Disco.exe) and UDDI.

22. Which step is necessary to perform before a Web service can be consumed?

It is necessary to build a proxy class by using the wsdl.exe utility before a Web service can be consumed.

23. Which property of the WebMethod attribute allows you to maintain the state of objects across sessions in a Web method?

The WebMethod attribute's EnableSession property enables you to enable session state for a Web method.

24. Write the names of public properties defined in the WebService class.

There are many properties defined in the WebServices class:
• Application - Obtains the application object for the current HTTP request
• Context - Obtains the HttpContext object for the current request, which encapsulates all HTTP-specific context used by the HTTP server to process Web requests
• Server - Obtains the HttpServerUtility object for the current request
• Session - Obtains the HttpSessionState object for the current request
• SoapVersion - Obtains the version of the SOAP protocol used to make the SOAP request to a Web service
• User - Obtains the Server User Object. This property can be used to authenticate whether a user is authorized to execute the request.

25. What do you understand by SOAP encoding?

The Serialization of the types, such as integers and strings, inside a SOAP message is called encoding. The SOAP objects use XML elements and attributes to serialized data, for example, encodingStyle is an attribute of theEnvelop element, which is used to specify the encoding rules for a SOAP object.




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.